<?php
namespace app\bbs\controller;
class Page extends Base{

    //文章详情
    public function detail(){
        $id = intval($this->get['id']);
        //查询文章
        $detail = $this->db->find('page',$id);
        $this->fetch(['detail'=>$detail]);
    }

    //专题页面
    public function topic(){
      
        $template = $this->get('v');
        $template = $template?$this->c.'/'.$template:'';
        $layout = $this->get('l','layout');
        $this->fetch([],$template,$layout);
    }
}
?>
